<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            margin:0;
            padding: 0;
            background-color: green;
        }
        .perspective{
            width: 200px;
            height: 200px;
            margin: 100px auto;
            margin-top: 100px;
            perspective: 1000px;
        }
        .rotateY{
            width: 200px;
            height: 200px;
            background-color: crimson;
            transition: all 2s;
        }
        .perspective:hover .rotateY{
            /*!*transform: translateZ(400px);*/       /*放大缩小*/
            transform: rotateX(100deg);            /*旋转*/
        }
    </style>
</head>
<body>
    <div class="perspective">
        <div class="rotateY">

        </div>
    </div>
</body>
</html>